import request from '../utils/request'

/**
 * 添加意见反馈
 * @param {string} adviseContent 意见描述
 * @param {array} adviseImgs 意见图片
 * @param {string} adviseType 意见类型
 * @returns {Promise<AxiosResponse<any>>}
 */
export const addAdvise = (adviseContent, adviseImgs, adviseType) => {
  return request.post('sys/advise/save', {
    adviseContent, adviseImgs, adviseType
  })
}

/**
 * 搜索
 * @param {string} searchStr 查询关键字
 * @returns {Promise<AxiosResponse<any>>}
 */
export const search = (searchStr) => {
  return request.post('sys/search', {
    search_str: searchStr
  })
}
